export async function getCurrentPageConfig() {
  const json = await import('@/pages.json')
  const pages = getCurrentPages()
  const currentPage = pages[pages.length - 1]
  const currentPagePath = `/${currentPage.route}`
  for (const page of json.pages) {
    if (`/${page.path}` === currentPagePath) {
      return page
    }
  }
  throw new Error('异常，无法获取当前页面对应的配置信息')
}
